package com.itheima.health.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MemberDaoMP extends BaseMapper<Member> {
    /**
     * 插入
     * @param member
     * @return
     */
    int insert(Member member);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    Member selectById(@Param("id") Integer id);

    Member selectByPhoneNumber(@Param("phoneNumber") String phoneNumber);
    /**
     * 根据id更新非空字段
     * @param member
     */
    void updateByIdSelective(Member member);

}
